package com.jpyl.jpMedicalTreatment.http;

import com.google.gson.JsonObject;

import java.io.File;
import java.util.Map;

/**
 * Created by LMX on 2017/1/10.
 */
public interface IHttpClient {


    void get(final String url, final Callback callback);

    void post(final String url, final Map<String, String> params, final File file, final Callback callback);

    void post(final String url, JsonObject body, final Callback callback);


    interface  Callback{

        void onSucceed(String result);

        void onFailed(Exception e);

        void onFinal();
    }
}
